package pshycomanagement

class Activity {
     //id
	String name
	Date startDate
	Date endDate
	String status
	String workLine
	String description
	
	static hasMany = [users : User]
	//relationship with project
	// static hasMany = [projects : Project]
	static constraints = {
	name blank: false, size: 3..15, unique: true
	startDate min: new Date(), blank: false
	endDate min: new Date(), blank: false
	status blank: false, inList: ["En espera", "En desarrollo", "Finalizada"]
	workLine blank: false
	description blank: false
	
	}
	String toString() {
	"${id}"
	}
}
